package com.briup.day11.abBean;

public abstract class Shape {
    private String name;

    public Shape() {
    }

    public Shape(String name) {
        this.name = name;
    }
    //抽象方法定义:权限修饰符 abstract 返回值类型 方法名
    //一旦类里面有抽象方法，类必须声明为抽象类
    public abstract double getArea();
}
